package com.atguigu.lease.common.exception;

import com.atguigu.lease.common.result.Result;

public class GlobalExceptionHandler {

    public Result error(LeaseException e){
        e.printStackTrace();
        return Result.fail(e.getCode(),e.getMessage());
    }

}
